@*Hdip Project 2013-14, Student Name:- Chris Pembroke,  Student Number:- x00115839*@
@model IEnumerable<Exercise1Project.Models.Bike>

@{
    ViewBag.Title = "Index";

}

<div class="viewContainerDiv1">

    <h2>Bikes</h2>

    <p>
        @Html.ActionLink("Add Bike", "Create")
    </p>

    @using (Html.BeginForm())
    {
        <table class="table">
            <tr>
                <th>
                    @Html.DisplayNameFor(model => model.Make)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Model)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Color)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Frame_Number)
                </th>
                <th></th>
            </tr>


            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Make)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Model)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Color)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Frame_Number)
                    </td>

                    <td>
                        @Html.ActionLink("Edit", "Edit", new { id = item.BikeID }) |
                       @* @Html.ActionLink("Delete", "Delete", new { id = item.BikeID })| *@
                        @Html.ActionLink("ListServices", "BikeService", new { id = item.BikeID })
                    </td>
                </tr>
            }
        </table>

    }

</div>

    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
        <link rel="stylesheet" href="@Url.Content("~/Content/customised.css")" />

    }


